/**
 * All Rights Reserved , Copyright (C) 2021 , 青岛鼎信通讯股份有限公司
 *
 * MmsPostAuthorizationInfoActionAuto
 * 岗位授权信息表新
 *
 * 修改纪录
 * 2021-06-29 版本：1.0 hudeyong 创建。
 * @version 版本：1.0
 * @author 作者：hudeyong
 * 创建日期：2021-06-29
 */

package com.topscomm.mms.controller.auto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topscomm.mms.MmsController;
import com.topscomm.mms.pojo.MmsPostAuthorizationInfoEntity;
import com.topscomm.mms.service.IMmsPostAuthorizationInfoService;
import com.topscomm.pub.vo.ResponseResult;

public class MmsPostAuthorizationInfoControllerAuto extends MmsController<MmsPostAuthorizationInfoEntity, IMmsPostAuthorizationInfoService> {
	/**
	 *
	 * @description:
	 * @param paraMap
	 * @return
	 * @author: hudeyong
	 * @date: 2021-06-29
	 * @modify:
	 */
	@Override
	@GetMapping(value = "/dataCodeList")
	public ResponseResult<Object> dataCodeList(@RequestParam(required = false) Map<String, Object> paraMap) {
		Map<String, Object> codeMap = new HashMap<String, Object>();

		List<Map<String, Object>> deptcommoncodeList = datacodeCache.getCodeListMap("PostDeptCommonCode", "", "sortcode");
		codeMap.put("deptcommoncodeList", deptcommoncodeList);
		List<Map<String, Object>> postcodeList = datacodeCache.getCodeListMap("PostCode", "", "sortcode");
		codeMap.put("postcodeList", postcodeList);
		List<Map<String, Object>> visibledeptcommoncodetypeList = datacodeCache.getCodeListMap("VisualDeptType", "", "sortcode");
		codeMap.put("visibledeptcommoncodetypeList", visibledeptcommoncodetypeList);
		List<Map<String, Object>> visibledeptcommoncoderangeList = datacodeCache.getCodeListMap("DeptCommonCodeTrack", "", "sortcode");
		codeMap.put("visibledeptcommoncoderangeList", visibledeptcommoncoderangeList);
		List<Map<String, Object>> visibleproductlinetypeList = datacodeCache.getCodeListMap("VisualDeptType", "", "sortcode");
		codeMap.put("visibleproductlinetypeList", visibleproductlinetypeList);
		List<Map<String, Object>> visibleproductlinerangeList = datacodeCache.getCodeListMap("ProductLine", "", "sortcode");
		codeMap.put("visibleproductlinerangeList", visibleproductlinerangeList);
		List<Map<String, Object>> novisiblecommoncodetypeList = datacodeCache.getCodeListMap("VisualDeptType", "", "sortcode");
		codeMap.put("novisiblecommoncodetypeList", novisiblecommoncodetypeList);
		List<Map<String, Object>> novisiblecommoncoderangeList = datacodeCache.getCodeListMap("DeptCommonCodeTrack", "", "sortcode");
		codeMap.put("novisiblecommoncoderangeList", novisiblecommoncoderangeList);
		List<Map<String, Object>> novisibleproductlinetypeList = datacodeCache.getCodeListMap("VisualDeptType", "", "sortcode");
		codeMap.put("novisibleproductlinetypeList", novisibleproductlinetypeList);
		List<Map<String, Object>> novisibleproductlinerangeList = datacodeCache.getCodeListMap("ProductLine", "", "sortcode");
		codeMap.put("novisibleproductlinerangeList", novisibleproductlinerangeList);
		List<Map<String, Object>> whethermustList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("whethermustList", whethermustList);
		List<Map<String, Object>> enabledList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("enabledList", enabledList);
		List<Map<String, Object>> whetherdefaultList = datacodeCache.getCodeListMap("CboYesNo", "", "sortcode");
		codeMap.put("whetherdefaultList", whetherdefaultList);
		super.dataCodeList(paraMap);
		return ResponseResult.ok(codeMap);
	}
}

